This lesson is part of the Alarming in Ignition course. You can browse the rest of the lessons below.

LESSON LIST

Autoplay Off

Supplemental Videos

LESSON

Pipeline - Filter on Alarm Priority

Description

Learn how to filter for alarm priority in Alarm Notification pipelines.

Video recorded using: Ignition 8.1

Transcript

(open in window)

[00:00] In this video, we are going to take a look at how we can create a notification pipeline that notifies a different list of people based on the alarm's priority. Let's assume that all the alarms are already configured to come into this pipeline. Since we're filtering on the priority, we can either use the switch block or the expression block to make this happen. The switch block will allow me to switch on the priority, doing something different for every single priority that exists. The expression block will allow me to check for a particular priority, and it's going to return true or false if the priority matches. This will allow me to do something if it's true, and something different if it's false. I'm gonna do the expression block here. I'll drag an expression block down into my pipeline, and then I'm going to hook up my start into the end of the expression. Now the expression is going to return true or false.

[01:03] So down here on the bottom left, I can type in what I want the expression to be. I'm going to go and use the parameter selector button here to go and bring in the priority of the alarm. When the alarm comes through the pipeline, it's going to be replaced with the actual priority of that alarm. Now, I want to check to see if that priority is critical. So I need to compare it to what a critical priority would be. Each priority is assigned a numeric value, with zero being diagnostic, one being low, two being medium, three being high, and four being critical. So to check if the priority is critical, I need to compare the alarm's priority to a value of four. If the alarm is critical, this comparison will return true, and will go out the true output. If it is not critical, it will return false and will go out the false output. I can do something different for each of these conditions. I'm going to bring a notification block in and hook up the true output into the notification block. For these critical priority alarms, I'm going to send an email to all of the users in my critical roster.

[02:10] If I take another notification block and bring it down below, I can hook up the false output into the notification block. And on here, I can send an email to all of the users in my non-critical roster. So as you can see, a simple expression allows us to filter on the priority of any alarms that come through the pipeline.

You are editing this transcript.

Make any corrections to improve this transcript. We'll review any changes before posting them.